package lee;

import org.test.cxf.domain.Cat;
import org.test.cxf.domain.User;
import org.test.cxf.ws.HelloWorld;
import org.test.cxf.ws.UserService;
import org.test.cxf.ws.imp.HelloWorldWs;
import org.test.cxf.ws.imp.UserServiceImpl;

import javax.xml.ws.Endpoint;
import java.util.List;

public class ServerMain {

    public static void main(String[] args) {
        HelloWorld hw = new HelloWorldWs();
        Endpoint.publish("http://127.0.0.1:9999/test", hw);
        System.out.println("WebSercice开启成功");
/*        System.out.println("1234");
        User user = new User();
        user.setId(1);
        user.setName("夏国杰");
        user.setPass("3322");
        UserService us = new UserServiceImpl();
        List<Cat> list = us.getCatByUser(user);
        for (Cat cat : list) {
            System.out.println(cat.getName()+","+cat.getColor());
        }*/
    }
}
